import request from '@/utils/request'

// 查询租赁合同列表
export function listLeasePact(query) {
  return request({
    url: '/payfee/leasePact/list',
    method: 'get',
    params: query
  })
}

// 查询租赁合同详细
export function getLeasePact(id) {
  return request({
    url: '/payfee/leasePact/' + id,
    method: 'get'
  })
}

// 新增租赁合同
export function addLeasePact(data) {
  return request({
    url: '/payfee/leasePact',
    method: 'post',
    data: data
  })
}

// 修改租赁合同
export function updateLeasePact(data) {
  return request({
    url: '/payfee/leasePact',
    method: 'put',
    data: data
  })
}

// 删除租赁合同
export function delLeasePact(id) {
  return request({
    url: '/payfee/leasePact/' + id,
    method: 'delete'
  })
}

// 导出租赁合同
export function exportLeasePact(query) {
  return request({
    url: '/payfee/leasePact/export',
    method: 'get',
    params: query
  })
}